﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace MagicFight
{
    public class Devotion : Magic
    {
        int pointGain = Def.DevotionDef.PointGain;

        public Devotion(Character caster)
            : base(caster, Def.DevotionDef.N) { }

        public override void Effect(GameTime gameTime)
        {
            caster.AddPoints(MagicType.Arcane, pointGain);
            caster.AddPoints(MagicType.Elemental, pointGain);
            caster.AddPoints(MagicType.Holy, pointGain);
            caster.AddPoints(MagicType.Protection, pointGain);
            alive = false;
        }
    }
}
